(x_set_name_internal): Set icon to `text', derived from name, when
authorJohn Paul Wallington <jpw@pobox.com>
Fri, 2 Jun 2006 21:34:18 +0000 (21:34 +0000)
committerJohn Paul Wallington <jpw@pobox.com>
Fri, 2 Jun 2006 21:34:18 +0000 (21:34 +0000)
frame's icon_name isn't a string rather than only when it is nil.

src/xfns.c

index 9b9ba48ba8287ba6f2b69dc14c5beea38130a741..e6772dc65d9a54179803eaa66097a8d880b3d100 100644 (file)
@@ -1626,7 +1626,7 @@ x_set_name_internal (f, name)
        text.format = 8;
        text.nitems = bytes;
 
-       if (NILP (f->icon_name))
+       if (!STRINGP (f->icon_name))
          {
            icon = text;
          }